# -*- coding: utf-8 -*-
from datetime import timedelta
from airflow.operators.bash import BashOperator
from jms.dim.dim_sys_area_info_jt import jms_dim__dim_sys_area_info_jt
from jms.dim.dim_sys_area_info import jms_dim__dim_sys_area_info

jms_oracle__dim_area_network_info_desc = BashOperator(
    task_id='jms_oracle__dim_area_network_info_desc',
    execution_timeout=timedelta(hours=2),
    email=['jimmyk.ji@jtexpress.com','yl_bigdata@yl-scm.com'],
    bash_command="jms/oracle/dim_area_network_info_desc/execute.sh",
    pool='spmi_apack',
    retries=1,
    pool_slots=2,
)

jms_oracle__dim_area_network_info_desc << [jms_dim__dim_sys_area_info,
jms_dim__dim_sys_area_info_jt]